package com.mynature.booking.model;

public class TourInfo {

	public static final String TABLE_NAME = "tourinfo";

	private int mId;
	private String mPlace;
	private int mDuration;
	private long mStart;
	private int mMaxNum;
	private int mCurNum;
	private int mPrice;
	private int incNum;
	private int decNum;

	public void setId(int mId) {
		this.mId = mId;
	}

	public int getId() {
		return mId;
	}

	public void setPlace(String mPlace) {
		this.mPlace = mPlace;
	}

	public String getPlace() {
		return mPlace;
	}

	public void setDuration(int mDuration) {
		this.mDuration = mDuration;
	}

	public int getDuration() {
		return mDuration;
	}

	public void setStart(long mStart) {
		this.mStart = mStart;
	}

	public long getStart() {
		return mStart;
	}

	public void setMaxNum(int mMaxNum) {
		this.mMaxNum = mMaxNum;
	}

	public int getMaxNum() {
		return mMaxNum;
	}

	public void setCurNum(int mCurNum) {
		this.mCurNum = mCurNum;
	}

	public int getCurNum() {
		return mCurNum;
	}

	public void setPrice(int mPrice) {
		this.mPrice = mPrice;
	}

	public int getPrice() {
		return mPrice;
	}
	
	public boolean hasLeft(){
		if (mCurNum>=mMaxNum);
		return false;
	}

	public void setIncNum(int incNum) {
		this.incNum = mCurNum++;
	}

	public int getIncNum() {
		return incNum;
	}

	public void setDecNum(int decNum) {
		this.decNum = mCurNum--;
	}

	public int getDecNum() {
		return decNum;
	}
}
